import React from 'react';
import type { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
import Icon from '@ant-design/icons';

const DefaultSvg = () => (
  <svg
    width="16"
    height="16"
    viewBox="0 0 16 16"
    fill="currentColor"
    xmlns="http://www.w3.org/2000/svg"
  >
    <path
      fillRule="evenodd"
      clipRule="evenodd"
      d="M2 1C1.44772 1 1 1.44772 1 2V4C1 4.55228 1.44772 5 2 5H14C14.5523 5 15 4.55228 15 4V2C15 1.44772 14.5523 1 14 1H2ZM12.2 2C12.0895 2 12 2.08954 12 2.2V3.8C12 3.91046 12.0895 4 12.2 4H13.8C13.9105 4 14 3.91046 14 3.8V2.2C14 2.08954 13.9105 2 13.8 2H12.2Z"
    />
    <path
      fillRule="evenodd"
      clipRule="evenodd"
      d="M2 6C1.44772 6 1 6.44772 1 7V9C1 9.55228 1.44772 10 2 10H14C14.5523 10 15 9.55228 15 9V7C15 6.44772 14.5523 6 14 6H2ZM12.2 7C12.0895 7 12 7.08954 12 7.2V8.8C12 8.91046 12.0895 9 12.2 9H13.8C13.9105 9 14 8.91046 14 8.8V7.2C14 7.08954 13.9105 7 13.8 7H12.2Z"
    />
    <path
      fillRule="evenodd"
      clipRule="evenodd"
      d="M2 11C1.44772 11 1 11.4477 1 12V14C1 14.5523 1.44772 15 2 15H14C14.5523 15 15 14.5523 15 14V12C15 11.4477 14.5523 11 14 11H2ZM12.2 12C12.0895 12 12 12.0895 12 12.2V13.8C12 13.9105 12.0895 14 12.2 14H13.8C13.9105 14 14 13.9105 14 13.8V12.2C14 12.0895 13.9105 12 13.8 12H12.2Z"
    />
  </svg>
);

const DefaultIcon = (props: Partial<CustomIconComponentProps>) => {
  return <Icon component={DefaultSvg} {...props} />;
};

export default DefaultIcon;
